Chosen Solution
So I have a Nintendo switch that had the sound working, but the sound stopped working out of nowhere, but still works when you have a headset plugged in, it works. NEED HELP
It might be a problem with the speakers. Check out how to replace the speakers here: Nintendo Switch Speaker Replacement