proverb

To fight with one’s own shadow.

Futility

meaning

To struggle against imaginary problems, unnecessary fears, or difficulties that exist only in one's own mind. It can also mean wasting time and energy fighting oneself or pursuing a pointless conflict.