it's object permanence, but for emotions.
the most common example is of people who have attachment issues or disorders that have attachment-issue-like symptoms (e.g. BPD), where people feel like their friends or partner do not love them unless they are showed affection and are reassured constantly.
it could literally be anything else too, like not thinking your soul-bound enemy hates you during times they don't show you hate
Person 1: I feel like my best friend doesn't like me unless they talk with me and reassure me they're my best friend.
Person 2: They do like you, and consider you a best friend as well..You just have emotional object permanence because momma didn't give you much love as a child.