As you said, I opened the file(.txt?) named debug.log. While reading debug.log, I found something weird. Forge 1.19 was good part and it loaded successfully but, there was written optifine 1.18.1. Actually, in my mods file there is optifine 1.18.1 too. I think because of this minecraft launcher recognized optifine 1.18.1 instead of optifine 1.19. I removed optifine 1.18.1 from the mods file. and started the minecraft launcher again. I could see optifine 1.19 is successfully loaded with shaders and other options.
Thanks to your advice I could manage my problem. Thank you Luis ST.