If you get a failing quality 3 times on any one exam, it is taken into account a course failure. To retake the exam, you'll want to register for any new course and start from the beginning.
This OSHA 30-Hour General https://oshatrainingcentre.com/courses/osha-30-hour-construction/