‘Wannabe real estate moguls’ bet big on this once-obscure loan type during the pandemic. Now many of them stand to lose