Most BMSes are smart enough that if they detect zero volts on all cells closest to the positive terminal, that it means that the battery is smaller than the BMS design, and it lowers the total pack LVC and HVC.
For example (See below), on my 24S BMS, if you wanted to install only 21 cells, you would simply leave off cells 22, 23 and 24, and connect cell 21 to the final . Some don't even need that final step. It will take the last non-zero voltage as the final cell. You should try this first to avoid any potential shorts. (Unlikely)
You will want to test this on a lab in case your specific one isn't this smart, but my understanding is that most of them are. At least, over the last 10 years, every single BMS I've used has had this capability.
Short BMS.jpg