Allah has already created a creation which does not make mistakes and never go against Allah’s will. These are the Angels and they do no have free will in the way we do. The Angels will always obey Allah. We are a different creation. Now you may say “why am I a human with free will rather than an Angel? How is Allah fair as I didn’t ask for this free will?”.
Please refer to this link:
How is Allah fair as I didn’t ask for this test?