Just to be clear, Product Management is not really a backup role for bad Software Engineers, unless that is what they were really good at instead of coding.
If you are bad at PM you can do mid-long term damage to a product which is not fixable like a problem in the code.
PM might have coding experience or not, it helps a lot if they do, but good PMs have a set of skills which are completely unrelated to being a software developer.