2024.7.3 which is currently scheduled for the end of the week will better handle low resource systems.
Make sure you have at least as much free disk space available as the size of your database at all times. This is general advice not specific to the table rebuild.
For the table rebuild it is preferred to have 2.5x the size of your database available in the event your system previously experienced an unclean shutdown (ie power loss, bad power supply, bad sd card, other hardware failure) which corrupted the states table in the past, and the corruption is only encountered during the table rebuild.