I had this problem for a long time but I have finally found a solution for myself.
So basically, go to ur pc settings and check if your windows have an update. (Settings- Look on the top right side near your Microsoft profile- Windows Update- Check for updates- Update- Restart)
Most probably you would need to manually update your windows and once you restart your pc it'll work.