Having issues with alt-tabbing in Touhou games

I’m using dgVoodoo version 2.86.5 and Special K version 25.12.2.5 to reduce input lag in Touhou games with Special K’s frame rate limiter. When I alt-tab, the screen resolution doesn’t change back to my native, it just stays at the game’s full screen resolution, 640 x 480. In Touhou 14+, the games support a higher resolution of 1280 x 960 but if I use that resolution, the game freezes when I alt-tab and needs to be killed with task manager. Touhou 14 specifically also has a weird issue where the game’s frame rate is capped at 31 unless I set the input latency setting to either “Stable” or “Fast”. Special K version 24.9.7.2 doesn’t have these problems with alt-tabbing, but it doesn’t work at all with Touhou 11 or Touhou 14+. The games freeze on boot, so I’m using 24.9.7.2 for the older games right now. I’ve tried messing around with all sorts of settings in the config file but can’t get alt-tabbing to work properly. I’m using Special K with the dxgi.dll in the game folder method. dgVoodoo is also on default settings except for the watermark removal. These are the config files I’m using for Special K: https://drive.google.com/file/d/1-bdlASIg_QVsAP0D_hqpPGa6PZAyZE4v/view?usp=drive_link