I assume you are using the very same setup that you say had success with. Only difference is you now moved it closer to the acquarium. In this condition, the very same test program which was working further away is now failing in proximity with the acquarium.
Couple of things I would check on.
1 - Check your power supply. Is it rippling more when near the acquarium? Change it to a different make to confirm.
2 - I would look at the declaration of variables and their neighbours to identify which variables could get over-written by a mistaken index into an array. This can possibly over write the suspect variables that you are saying are getting disturbed.
Bookmarks