This misses the most likely interpretation. That "I'm afraid" is an empathetic (or pseudo-empathetic) substitute for "I'm sorry, but..." implying that you have been fired and it doesn't matter the impact on your work. The boss isn't literally afraid and you are fired.
Yes it is a cliche/trope/idiom. Surely the embeddings etc. can “get that” about the word “afraid”. But what is really missing is the empathy for the question.
The question implies ESL and it didn’t get that. But honestly would the average HN replier get it?
You probably need chatgpt to ask more clarifying questions.