The general consensus is that snails predominantly eat decaying plant matter, and are beneficial for your plants, but if there’s not much else around to eat, I wouldn’t be surprised. Snails eat a wide range of different plants in their diet, they’ll eat just about anything. You can try offering some green vegetables to deter them off your plants? Zucchini, lettuce, peas, etc. algae wafers too
Just remove any residual leftovers, they will pollute your tank.