He had a work accident while operating heavy machinery.
Idiomatic Expressions for have an accident
Phrase: if you have an accident
Meaning: to express uncertainty or hesitation about a potential negative outcome
Usage: I'm not sure if I should go skiing this weekend, what if I have an accident?