Chemical trends of deep levels in van der Waals semiconductors