It's not uncommon to find a canted (curvature in the spring) spring in a factory gun and is commonly caused by excessive dieseling or detonation as well as using heavy pellets. In fact, new after market springs can cant as well but not nearly so readily if the spring guide and top hat are fitted to the spring and the top hat sized to the piston ID.
Depending on the cant, it won't usually cause any harm but can cause unwanter spring vibration and wearing of the guide and often a grinding noise as the cocking foot passes over and rubs on the spring when cocking and/or returning to battery.
A bent spring, where the spring is bent over the length of a several coils is another thing. If it is bent much and especially on the tophat end, it should definitely be replaced.