I have an EOS 5d MK IV and 7d MK 2. I have been using CF cards in my 7d with no issues.
However when I use a CanonFC-32MH 32GB (manufactured by Sandisk) in my 5d MK IV, I take 1 still image and it shows the card as full.
The card works fine in the 7d...