1. If they fired you due to your faults, you can not work for their competitors. They will limit your choices for other companies in similar projects. This would be your nightmare.
2. If you quit, you can work for other companies in a similar project to compete with them
You have made the right decision.