Here in Oregon, a vehicle has to give a full EMPTY lane of separation between a vehicle and a pedestrian.
I usually cut it a little closer than that on a bike, but am more likely to cut behind a person than in front of them.
Anyway, it sounds like the pedestrian believed you were impinging on his space. But, his reaction was a bit over the top.
Or, maybe he just didn't like bicycles.
Did you talk to him after the incident? Witnesses?