GitHub Desktop Failing to Revert

Hiya. I’m trying to revert to an older commit on GitHub Desktop because I made a mistake on my project. When I tried to do the revert it gave me the message “To finish reverting, please merge and commit the changes” and added some new boxes to the changes tab. Only when I try to commit them it gives me the error “Exit Code 1” and removes the boxes again. How can I resolve this?

I’m working on Windows 10 with a UE4 project.