A craniotomy may result in temporary memory loss or trouble concentrating and focusing in rare situations. These cognitive changes are typically temporary and improve over time as the brain heals. In rare cases, long-term memory loss or other cognitive deficits may occur.