It sounds like he is mostly not making the connections yet. So not really "accidents" but not really fully knowing the task. And the hiding is the indicator that something is up. Do you have choices for him--a small potty and a seat (with a step) that goes on the regular one? If not, try the other. Some kids just do not like the way it feels to go without a diaper. Is he still in diapers? If so, you can try a gradual switch from diapers to the potty by allowing him to go in his diaper, but only in the bathroom. Seriously no judgment, just "this is where we poop; it's ok to use your diaper or the potty." Then after he does that successfully for a bit transition to sitting on the potty with a diaper still on, then after a bit transition to sitting on the little potty with a diaper down below, then just the little potty. We did this method with my first and it felt like an eternity, but really was maybe 2 months from start to finish.
You're probably stressed from the urgency of needing him potty trained by the fall. You have time--three months is a LONG time in kid learning. Try not to react with anger when he does it, just move him to the bathroom to get changed. It'll help the association of where to go.
Oh, and I'd give zero credence to his saying he's not afraid. I'm not sure a 2.5 yo can put that association together.