EDIT: This bug happens even when less than 5 peons mining. 2 out of 5 peons will stop mining when paused and then unpaused, for instance during cutscenes such as orc prologue campaign map 2.
You shouldn’t have more than 5 peons mining anyway, unless you accidentally built too far away