When I went from 1.19.1 to 1.19.3 it didn't save any of the settings I set up

Configs are saved for each version. If you want to transfer the settings you can move the file .minecraft/libraries/EMC/X/configs or use .config save.

Secondly I can't seem to find Optifine

OptiFine is not released for 1.19.3.