Out of curiosity, you say he is not a competent player, so why assume he’s that strong? a min-raise 4-bet over an all-in seems weak to me. What was the villain’s stack size?
It really depends a lot on the table dynamic. If its a tight table, then a fold is great. If its a loose table (like it seems to be based off one hand), then a call is ok. A fold is definitely still ok too – what John says is spot on.
Don’t be too results-oriented when analyzing your play. What are you doing on the flop if villain shoves? you’re putting his range ahead of yours, you didn’t improve, and probably were folding then to any flop bet