If you're forced to use Windows, just use Windows 10 LTSC 2021 IoT. Gets security updates until 2031 but none of the new "features".
its not easy to use this legally though.
its not easy to use this legally though.