What is a comedy?
A “comedy” is a dramatic form, as is a tragedy. Therefore it need not necessarily be “comic.”
In fact, much comedy can be a bit horrifying if we think about it--the physical violence of slapstick, laughter at another’s expense in farce, the isolation of an outsider or scapegoat (in this play, Malvolio).