It's triggering a breakpoint? Did you set one?
More information about this would be helpful.
Are you storing a texture with in that class?
If the array is the problem, what sort of array are you using? Do you mean a C array, an std::array or maybe std::vector?
One thing to note is that some containers (for example, vector) can relocate when re-sized. If your texture is contained within the class and it relocates that instance, the sprite's pointer to the texture is invalid and can cause these sorts of problems.
That was a speculation based on commonly-seen mistakes.