I don't think you can avoid it happening. If you catch all the fry and chuck them into the main tank I'm pretty sure some will survive especially if there's plants and wood and other hiding spots, before you know it a nice new pair to add to your collection!
^This
Every established pair of convicts I have owned will eventually spawn in a completely random spot even if they have laid in the same spot for the prior few spawns.
I had a large cave in the center of a 55g. My primary pair would spawn in the right section of it 75% of the time. The other 25% it was a roll of the dice. This went on for years