I've been to a couple of subreddits already trying to identify this movie, but I've had no luck besides one person who vaguely recognized the plot, but didn't know the name.
I watched a movie at some point in recent memory, most likely the last few months, but I don't actually know what time period the movie is from, although I suspect it's newer (2017-2019). I'm not sure what platform I watched the movie on, though my Netflix history doesn't show anything matching the description so far, and I can't get access to my PLEX viewing history (I'm not the admin).
Anyway, what I remember of the plot is this... there was a woman who had trained her whole life to be an astronaut, and was given command of a mission. She was in maybe her late 20s to early 30s and I believe had dark hair. However, once she and her crew reached orbit, she began to act confused and erratic, claiming to not know what was going on. It was revealed that she had a rare brain disorder that caused her to experience memory loss in space, and as a result, they had to abort the mission, and it destroyed her career.
I'm not entirely sure, but I believe she may have gotten pregnant afterwards, but ultimately I believe she ended up killing herself.
That was not all there was to the plot, as I believe this was only the first 10-20 minutes of the movie, but I cannot for the life of me remember the rest of the plot or what the name of the movie was. I've had my doubts about whether it was a movie, but I'm 99% sure that it was.
Some of the common suggestions were:
Predestination, however, this is not possible, as the reason for the main character's ejection from the space program wasn't because they had memory loss, but because
it was a women's only program and she was discovered to be intersex.
Brain on Fire
The main character's brain disorder had nothing to do with memory loss, and the movie had nothing to do with space or sci-fi.
Here is the /r/tipofmytongue post: [TOMT][Movie] Sci-Fi Space Movie with Memory Loss
There have been no replies yet to my /r/scifi post, though.