since you say it’s turning over good, check spark next time it won’t start… You’ve checked battery and starter and say they’re good, so next check if you’ve got spark, if so then check fuel delivery, because it sounds like you've got an intermittent fuel delivery or spark issue… Once you determine which is the problem, you‘ll be able to better able find the problem…
Hope this helps
Hope this helps