it's the opener's mother board or printed circuit. Either way it sounds like your going to have to have it serviced. My house was struck by lightning several years ago and my openers both did wacky things [like yours] afterwards. I replaced the printed circuits in both. Cost about $50 an opener.
A new opener retails about $250 at most Home Centers. Plus of course the cost of installation.