Corpsing (also called "breaking") is a theatrical term for when an actor unintentionally laughs or breaks character during a performance.
While often infectious and humanizing, corpsing disrupts the dramatic illusion and can distract the audience. In live theatre, the show must go on; actors train to suppress it. In film, a "corpsing" take is usually discarded (though blooper reels love them).
Professionalism is measured not by never wanting to laugh, but by not showing it.