To fix this, go to the Control Panel search field and type ‘Performance.’ Now choose ‘Adjust the appearance and performance of Windows‘. Click the Advanced tab and hit Change under the Virtual memory section.
Uncheck the ‘Automatically manage paging file size for all drives‘ box, select the drive containing Windows 10 (probably C:), and select Custom Size. Now change Initial Size and Maximum Size to the values recommended by Windows.
Set and OK the settings and reboot your computer.