Yes they investigate near misses. Has it been described as an accident? The RAIB link says incident.
I think he is hung up on the A in RAIB!
Maybe it should have been called the Rail Accident, Incident, Near Miss and any Other Worthy Item Investigation Branch but then RAINMOWIIB is a bit of a mouthful!