Serializartion of Kafka metrics java.lang.IllegalArgumentException: Message size to large?

I’m using confluent cloud and facing the below exception. As per my understanding, brokers will be self managed in confluent cloud so I have checked the message.max.bytes value in the topic configuration and its value is defined as 2097164 (2MB). I’m not sure why this exception is occurring with maximum allowed as 5MB. Can someone please clarify this.