Just get more ram and change over to windows 10 LTSC (see video below). If you can't get a license and end up on windows 11, run the debloat tool by chris titus tech to trim the fat of windows 11.
By today's standards, the i5-9500 is a bit dated, but if you render demanding synths to a dry PCM...