Is there anything in the EU law (or the law of any EU state) that permits suing Microsoft for auto restarting my PC each time there is a windows update (and not allowing me to prevent this)? My PC is my property and I should be the one that decides what to do with it.
Anyone can sue anyone for anything- you don't need a law that says "user39137 is allowed to sue Microsoft for restarting his PC". The question is whether you will succeed.
You won't, for two reasons. Three if you count the fact that it's trivial to stop updates restarting your PC at inconvenient times.
First, you probably agreed to this in the EULA.
Updates. The softwareperiodically (sic) checks for system and app updates, and downloads and installs them for you. You may obtain updates only from Microsoft or authorized sources, and Microsoft may need to update your system to provide you with those updates. By accepting this agreement, you agree to receive these types of automatic updates without any additional notice.
Windows 10 EULA
This likely isn't the only bit where you accept this, but it's the best I could find by skimming with ctrl-f. Obviously if you were to start a lawsuit, you'd want to read the whole thing.
Second, to sue someone you need to have suffered damages. "Being annoyed because the computer restarted in the middle of Among Us" isn't really worth anything.