F06: Other mental disorders due to brain damage and dysfunction and to physical disease

F06.5: Organic dissociative disorder

You have fully or partially forgotten things. With this, for example, one forgets normal memories from the past or even who one is. One may also lose control over one’s own movements and perception. In your case there is a physical reason for this.