My Components aren't scaling correctly

Hi, I’m having an issue when I scale a component. One part of the component moves outside of the frame and causes it to go outside the background. This only happens for some of the variants, which is annoying since I have no clue what is causing the problem. I guess the frame needs to be fixed because it’s not a specific size, such as 23, 24, etc, and shouldn’t be 23.5, 24.8, etc. If you know how to fix this issue, please let me know.

Figma(Latest Version)
Macbook Pro
MacOS Ventura

Hi there!
This seems buggy. Not sure where the issue may come from, can you try to resize bigger the frame to see if that helps? It would be great to have a quick video recording to illustrate your issue and a copy of your file so we can try to replicate it. Please reach out directly to the support team by filling the form here: Thank you!