FPS problems with modded Minecraft

Hello everyone,
Edit in case anyone else runs into this problem. My fix was to disable foamfix. If you are running amd and having fps issues then this is most likely the culprit.

So I’ve been trying to troubleshoot this for a while now and decided I definitely need some outside help so if anyone has any idea I’d love to hear.

My computer specs are:
Tweakbox https://www.happywheels.vip/
Ryzen 3 2200g

16gb DDR4 2600 ram

Rx460 2gb

I have been trying to play mostly sevtech and it continues to drop down to 1-4 fps when joining the game. I have already disabled better foilage, fancy block particles, and smooth font. I have tried adding optifine but for the life of me it keeps giving me errors so I’m not sure what I’m doing wrong.

But please any advice I would love to hear I love this game and am getting increasingly frustrated.
Thank you in advance for help.