Do you want to check your student handbook or consult your class teacher and ask about the grades of the courses you are failing now? Will the school allow you to do your graduation project (thesis) next semester? If you can do it, you will finish it. If you can't do it, you have to wait for other courses to be completed.
This semester is over. Take all the classes that you can take next semester and do it according to the requirements of the school. If you have any difficulties, you can consult your class teacher. There must be a surprise. Finally, you must know that graduation project (thesis) is your last course with the most credits, and you must pass it before you can graduate.