What are the formal and informal equivalents (idiom or word) for the situation which Sword of Damocles could describe that?
From Cambridge Dictionary, Sword of Damocles means:
If you have a sword of Damocles hanging over you/your head, something bad seems very likely to happen to you.
E.g. The threat of a cut in funding is hanging over the Opera House like a sword of Damocles.