Kibana Canvas error: Invalid string. Length must be a multiple of 4

I am using version 7.16.2 of Kibana. I am adding a dropdown filter in Canvas.

Let's say the index pattern is *-*_stage. This index pattern includes 100 data streams. When trying to add this index pattern in the Canvas dropdown filter, I am getting this error:

Can anyone please help me resolve this issue ?