Try this, take your Lightning EarPods and plug them into the Apple Pencil adapter (that allows you to charge the Pencil via the wall) and plug a Lightning Cable into the other end, then plug the Lightning cable into a USB C to USB A dongle
Now see if macOS sees the headphones and see if they output audio