Specifically which Windows OS are you using (and bitness). If using Windows 10, which update are you using?
Is secure boot enabled?
I just installed NI-SWITCH 19.5 on Windows 10 x64 update 1903. It installed and my PXI-2522 seems to work.
That DLL does not exist on my system even though I've installed the NI-SWITCH package. The title for that package says NI 2524/5/6, 273x, and 274x Switches. So it does not list the 2522, but the readme file shows it as supported hardware. Not sure what the issue is?
You need to make sure to include support for the NI-DAQmx based switches:
The PXI-2522 is an NI-DAQmx-Based Switch.