No Damage Bug

I’m playing a Cabalist with the goal of getting and casting as many Spell Gems as possible. In longer fights, such as against bosses, it happens that my offensive spells no longer deal damage, or not all enemies take damage if it’s a multi-target spell.