Kinda goes without saying that a debug mode in general is going to lower or possibly compromise the security on a live site.
That said, the litespeed cache plugin is full of bugs and the security problems that have come to light are just the beginning.
Hope we get better nginx support soon.