The memory that tends to fail when we are feeling stressed, distracted, and preoccupied is called prospective memory.
The prospective memory occurs when we form an intention to do something later and when we plan actions that should be performed in the future.