Your problem is not simple as you have rectangle that doesn’t fit in some shapes.
You can have the maximum circle(s) using that
This doesn’t seem to work
I tested Wordle but it is long.
perhaps OpenNest could be better ?