These spin boxes have no upper bound but step by 1, which is slow for large values such as a database cache of several thousand MiB.
I created this functionality within Qt itself a few years back, see documentation here: https://doc.qt.io/qt-6/qspinbox.html#setStepType
It's already used by qBittorrent for its upload and download limits: https://github.com/qbittorrent/qBittorrent/pull/21138. Maybe it can be useful here too?