To start with, two easy things.

One, do a battery load test if you have a tester, or take it to a shop that has one. The battery should be brought up to full charge for the test to be valid. Could be it's too weak and needs replacement.

Two, you might have a ground problem, though you said it worked fine for "several hundred miles". If you've got a proper ground strap perhaps it's loosened.