Related: Button group dropdown field - #4 by Yuri_BC
If you can group buttons, then the UI can show in the same way as the “Convert to…” on the right click. Saving space for actions that are similar. (For example, looking at your buttons, “AI” could be a group, or all timer functions, (Start, stop, reset) could be a group. Saving space.)
Still doesnt fix the overflow bug though.