I prayed some prayers with a wrong qiblah without knowing, but I don’t remember how many prayers I prayed in that manner in order to repeat them. What should I do?
If you prayed to the wrong qiblah, you need to repeat your prayer if you were able to find out the correct direction but you did not make efforts to find out, or you just asked a child who does not realize directions.
But If you were in a place where you are not able to find out the direction, no one around to ask, no compass available. In this case you pray according to what you think might be the correct direction. And if it turns to be wrong, your prayer is still correct and you do not repeat prayer.