This should be illegal. It is literally a loan with no interest.
Some napkin math:
Assuming that a customer gets paid monthly by stripe, that would mean the amount frozen by stripe would be 1/12 of a customer's ARR. Applying the federal funds rate to that over 120 days works out to a cost 0.0843% of customer's ARR. Meanwhile, stripe charges 2.9% in fees. Not all of that goes to stripe, some goes to banks in the form of interchange. If we assume stripe gets 0.5% after interchange, that would mean the losses from losing the customer for one year alone would be 0.5%, an order of magnitude higher than whatever interest they'd be forced to pay.
[1] current federal funds rate is 3.08%. if it's applied over 120 days, it works out to around 1.01%