Unfortunately, if you are not able to clear your exam in the first attempt, then be disheartened as PMI provides an option to retake the examination.
You are eligible for 3 retakes in a year.
For more details, refer to https://www.edureka.co/blog/pmp-exam-all-you-need-to-know/
Hope this helps!