Not enough space when trying to save on iCloud

I'm receiving a message saying I don't have enough space on my phone when trying to back up a chat. However, I was under the impression I was backing it up at iCloud, which says I have 167 Gb free (and only need 2.8 for whatsapp).

How do I save the conversation on iCloud as I'm running out of space on my phone and will trade it to a better one? (My intension is to retrieve the saved chats and download it in the new phone).
You have to save to your phone first and if your phone is out of space you'll have to free some up.

Original thread: https://forums.imore.com/threads/not-enough-space-when-trying-to-save-on-icloud.380304/