The correct psychological term is nervous laughter (also called incongruous affect or stress-induced laughter). It’s an involuntary response to anxiety, fear, grief, or shock—distinct from humorous laughter. The brain attempts to discharge tension or signal “I’m not a threat” via a social cue mismatched to the internal state.
Common in high-stress professions (ER staff, soldiers, first responders) and during traumatic news delivery. Not a disorder unless persistent and disruptive.