Lender posts first loss since going public in January 2021