a movie about a guy whos dad is gonna die on independence day and but he is forced to go to a alien planet with a crew which dies and then he dies everynight and is controlled by a alien and in the morning there is his body but he is a new person and any damage or wounds he had are gone
Possibly the Tom Cruise movie Edge of Tomorrow. Cruise plays a soldier battling an alien invasion with a small team. He is repeatedly killed, but, just like in the movie Groundhog Day, he resets and his body is restored and he can repeat the day. He can remember the events of each of the prior iterations of that day, and builds on that knowledge to become a better soldier.