Hi,
I doubt if there is a bugfree project. In software, the engineering bug is always part of the story. It exists because of more philosophical reason related to the human`s mind. But, always using software design patterns and right architecture for your software system, side-by-side of unit testing, component testing, integration testing, and SQA can help you to build up your software system more robust and less buggy. For example use of Microservices architecture
Dive into Microservices Architecture - Part I[
^] can bring some advantages in terms of robustness and etc. But everything at the end is a tradeoff that you need to rely on your decision.
Cheers,
Aydin