MIDIS: The relation between strong (Hβ + [O iii]) emission, star formation, and burstiness around the epoch of reionization