If you wanna avoid bicycle accidents, don't get on the bike in the first place. I don't know any cyclists that have not crashed. It's part of the process. Like falling while skiing, or getting hit with a pitch playing baseball. Sure, it's not something that should be happening with a high degree of frequency, but sooner or later it's gonna happen. More often when you're learning, less so as you gain experience.
A skillful blend of caution and common sense can help protect you from the worst, but there's nothing that can protect you from every possibility.
-Kedosto