So, when I disconnected my driver side strut to get to the amp & sub for replacement it was a bit more involved than just disconnect/ reconnect…
Upon disconnecting the drivers strut you must not allow it to turn. Allowing it to do so somehow changes it’s open/ close stop limits.
My issues was the opposite of yours; it would close, and then immediately reopen. Then close, and reopen.
I made a “mental” note of the position of the strut end when disconnecting it. Well, it had to be moved a few times. Think the big thing was I had to close the hatch to put the truck in the garage because the Arizona sun got a bit too warm. Though I manually closed it I could hear the strut motor actuating the strut.
So, I made a few adjustments to the strut in/ out until it closed shut without reopening. Believe it took me three attempts.
“MIGHT” be your issue in reverse; if that makes sense.