1. Reset Windows 11 virtual memory
Uncheck the check box to automatically manage the paging file size of all drives (A).
Select the drive letter where "Managed System" is located, click "No paging file", click "Settings", and click "OK".
Click "Yes"
and click "OK".
After clicking "OK", restart the computer to make the settings just changed take effect.
2. Automatically manage virtual memory
After restarting, open the "Virtual Memory" interface again. Click the check box to automatically manage the paging file size of all drives (A),
click OK,
restart the computer again, and let Windows 11 automatically manage virtual memory.
Refer to
https://www.xitongtang.com/class/win11/33600.html
how to set and manage virtual memory in Windows 11