No difference in meaning. I would prefer 'in such a case', but 'in such case' also seems to have gained some popularity, perhaps because of its similarity to the common 'in any case'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.