sorry to hear. Did you try disabling the xbox game bar? There is a setting that records in the background that supposedly causes some issues but i disabled altogether since don’t plan on otherwise gaming.
Also in the graphics settings you can increase priority of specific apps (apart from doing it in the task manager).