SPACs are getting hit by a rising number of class-action lawsuits as more hyped-up deals turn out to be flops.…