I can reproduce your problem: If you change the Scale setting in Windows Settings, you will find that the size and location of the form and controls are affected by the change in the scale setting after opening the project, and after running the project, the dynamically added buttons do not display the correct size and location.
It is normal that the size and location of the initially created form and controls are affected by the change in the scale setting. You can refer to the instructions in the following link and handle it:
https://github.com/dotnet/winforms/blob/main/docs/designer/designer-high-dpi-mode.md
https://learn.microsoft.com/en-us/visualstudio/designers/disable-dpi-awareness?view=vs-2022
Based on the above link, we could set ForceDesignerDPIUnaware property to solve the problem that controls displayed abnormally. However, it is only suitable for dragged controls instead of dynmaically created control. If you still want to solve it for dynmaically created control, I recommend that you could submit an issue in Winforms-GitHub-Issues. Upon you submit the issue in GitHub, please post back your issue link, which may help others who faces the simliar issue to know the progress.