There is not much you can do other than some obvious:
Try very hard to remember to close files in NPP before disconnecting VPN. Consider disabling auto session save so NPP will start empty next time. Consider disabling monitoring of external file modification.Basically NPP just try to open the file’s absolute path.
The very long delay is because Window is trying to give the network a chance to “recover”. Network timeouts are very long and since it happens over and over again it is effectively a freeze.
Depending on the file path that you provide to NPP you may be able to mitigate some of the effect.
Don’t use absolute network path: \\host\path\name.
Use either network mapped drive or subst drive letter.
Then if you completely unmap or subst -D the drive letter, Windows may provide NPP with faster failure result.
In theory maybe NPP could add some extra test to see if a drive letter is currently valid but don’t count on any quick fix.