Playing on your 3DS solves the problem without using PKHeX; not having a 3DS and playing the games is piracy, which we do not support.
Save files are not ".3ds" files. That's a ROM, which you dumped & decrypted from your own cart/3DS digital copy.
Closing the thread as it is clear you do not own the games you are playing.