Collins dictionary says you can only use might or could in this situation- when something didn't happen but you think it could have.
So, sentence 1 is right and sentence 2 is wrong.
`If he hadn't hurt his ankle, he might/could have won the race'
`If he hadn't hurt his ankle, he may have won the race'
Do people make that distinction?