Nintendo Switch constantly switches between headphone audio and speakers

Hi all, I’ve been having Issues with my modded OLED switch. Everything works fine except for the sound. It switches between headphone connection to speaker and vice versa once the switch turns on. This keeps happening either on OFW or CFW. I removed the headphone jack/game card/sd card combo board, but issue still persist.