I would like to ask about the name of this movie. The movie includes a girl whose father deprives her of an inheritance after knowing that her mother has allowed her to take her share of it, and he sends her to a mental institution to erase her memory, by knocking a nail from her nose to her mind

Edited comment

Maybe “Sucker Punch” (2011)?
Detailed plot summary on Wikipedia here:

Apart from the inheritance part, the basic premise matches your description.