Amending a return

I accidentally chose married instead of single when I sent my taxes for 2022. When my boyfriend tried to file his taxes, he got denied because I said we were married on my tax return. I understand I need to amend my return. Can I do it electronically, or do I need to send it by mail? Also, do I need to mail my W2 with my amended return? And how about my boyfriend? Does he also need to send it by mail?