Welcome to the forum.
Hopefully there’s another codec common to both phone and earbuds. With the earbuds on, paired and connected to the phone, go to
Settings > System > Developer options1 > Bluetooth audio codec
You will see a list of the options supported by the pair of devices (i.e. that they have in common). Make a note of the current setting before changing it.
1 - If you don’t currently use Developer options, see here. Do not adjust these settings unless you know what you’re doing and how to undo what you’ve done.