What i remember is a male living his life but something happens and it turns out at the end that he is in a simulation and his actually body is dead but his upper body is still connected to some machines somewhere and there are people doing experiments on his upper body and consciousness. A woman who works there feels bad for him after something happens to him in the simulation and runs to where his upper body is and disconnects it so he can finally have a peaceful death. That is everything I remember.
A possibility:
https://www.imdb.com/title/tt0945513/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_source%2520code
casspir you can watch it here…….https://tubitv.com/movies/675386/source-code?start=true&tracking=google-feed&utm_source=google-feed