I'd suggest automatically fallback to lower performance but stable Get-GitStatus when Get-GitStatusFromCache failed, instead of totally not working and shows an "CACHE ERROR" here.
I suggest so because git-status-cache project currently not working well with git sparse checkout feature (cmarcusreid/git-status-cache#27) & lfs feature (cmarcusreid/git-status-cache#18). And both of them are blocked by libgit2 upstream, which could be a tough work to support them.