Garmin GPSr are designed to be used while external power supplies are present, and many of us have done so for many years without issue.
I can not say what happened in your case, but I can assure you that using your device while external power is present is allowed.