I understand getting attached. I ended up with 5 roosters out of my 11 chickens, which is actually really good odds, but by the time they were sex-age I had already had them for several months, and it was hard getting rid of 4 of them. I did so immediately, though, knowing it would be harder the longer I waited. I just have the one rooster to my 8 hens now and he's doing very good with all of them. Keeps them in line when free-ranging, calls them all back when they start straying, leads them back to the coop, and my first chicken had began laying and all her eggs are fertilized so far.
The other posters have given you good advice already. If you're unwilling to re home one of the roosters, you need to expand the space they're in (how big is it currently?) and separate them in 2 halves to give each rooster their own hens to rule and care for. And even splitting them into two groups will cause quite a too few hens per rooster, so I would increase the amount of hens as well, so they don't each over-use the few they have. I don't know what the secrete number is for how many hens per rooster you should keep. If you can separate them into different groups for each rooster, then I would say at least 5-7 for each of them. If you can't separate the two roosters into their own spaces and hens, you might need a lot more then that. There's a reason I kept only 1 of my 5 roosters, and it was to prevent this hardship lol. It hurt to rehome them, but I ensured the rest of my chickens happiness and health in the mean time.. and I liked them all just as much, and making sure they were happy and healthy vs sickly and ill-treated wasn't that hard to choose from. I was more willing to get rid of a few males to keep the rest in good health. I plan on getting more chickens next year, my husband wants a better coop, more space, more run. I want silkies and frizzle chickens and we'll probably end up with 2-3 roosters by next year if we get as many as my husband is looking at, lol.
I did have to rehome 3 of my ducks the other day, and that sucked. I've had them for about 4 months and seeing them go was heartbreaking, but I ended up with 2 hens and 5 drakes. Nobody was buying my drakes (and the idea of getting rid of them sucked just as much, I'm more attached to my drakes!) but I knew those girls would be dead if I didn't do something. Ended up selling the 2 girls and letting a male go with them to someone who had a single hen duck who needed companions. It was better for them, and now I have a male flock of 4 ducks vs my previous 7.. it's quiet, and a bit lonely sounding.
Good luck, what ever your choice.