What print quality are you using? An M5 bolt is relatively small, so I’d suggest High Quality, or even going with a custom 0.05mm layer.
It’s strange that it’s flat on one side. It kind of looks under extruded. Were you present when it was printing that section?