Hello,
Thank you for using Microsoft products and posting to the community.
Since the situation you have described (desktop freezing) is often caused by third-party programs that automatically start at boot or at login, please try performing a clean boot first, in order to rule out the influence of third-party programs.
Please refer to this support article for how to perform a clean boot.
Disclaimer: A “clean boot” starts Windows with a minimal set of drivers and startup programs. It helps to determine whether a background service is interfering with your game or program and to isolate the cause of a problem.
These steps of "clean boot" might look complicated at first glance. However, to avoid any trouble for you, please follow them in order and step-by step so that it will help you get back on track.
Tell us the results, and we will get back to you as soon as possible. We may recommend other troubleshooting steps based on that.
Best Regards,
Johann - MSFT | Microsoft Community Support Specialist