Pressing the stop button on the drive didn't reset the fault?
I'm certain that will reset the fault. If your problem is something else, I would encourage you to provide as much detail as you can.
If you are looking for advice as to why you are getting a F005 fault, it is typically because something is driving your motor. For example, a heavy load trying to stop too fast.
Describe all of the hardware involved, the specific application and what you are trying to solve.