Yes.
First of all, I think this situation is not that simple if it really happens.
A person's amnesia is actually equivalent to becoming another person.
Think about it, if you forget who you are
You forget who you love
Who you hate
You forget What do you like and dislike.
You have forgotten some of your persistence.
Are you still you?
No, you have become a new person,
someone else.
What does it mean that your girlfriend has lost her memory?
It means that your girlfriend died and a new person appeared in her body.
Any action to help her regain her memory is equivalent to killing this person to resurrect your girlfriend.
If it were me, I would do this.
After all, what does the life and death of this "newcomer" have to do with me.
I want my girlfriend to be resurrected.