What are the factors of sudden short term memory loss?

Complex. Sudden memory loss can be from a traumatic brain injury (concussion), a stroke in certain areas of the brain, seizures, transient global amnesia (a short lived benign condition that we don't fully understand) or other causes.