Hi,
welcome and thank you for sharing your question.
I would suggest you to contact the foreigners' registration office (Ausländerbehörde) in the city, where you live. You must ask them, if they give you time to find a new vocational training (Ausbildung).
Best Regards,
Aida