I switched off the page file to release disk space before defragmenting / resizing. Worked with me but the warnings are there for a reason. Ensure you have backed up all data first!