All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
The tiny hole in your trousers exposes a little bit of your ‘Awrah, and this does not invalidate your prayers, and you do not have to redo it.
Ibn Qudaamah said:
"If a little bit of the ‘Awrah becomes uncovered, then this does not invalidate the prayer. The definition of what is 'a lot' is that which is offensive to look at, and in this case, there is no differentiation between the private parts and other parts of the ‘Awrah. What is considered as 'little' is that which is not offensive to see, and the judge in this regard depends on what is customary to be accepted (by one whose morals are upright)."
Allah knows best.