You don't have to make a profit to get into legal hot water over copyright. It's a consideration when evaluating Fair Use, but it is emphatically not a free pass or a get-out-jail-free card.
Also, not-for-profit doesn't mean you can't or don't make a profit (though our Dev team chooses not to), it means there's no owners (or partners, or shareholders, etc...) that make a personal profit. A non-profit or not-for-profit can make a profit, they just can't distribute it - it must be used for operations and/or the stated purpose of the organization. (The non profit I'm part of is hurting bad right now because our operating funds for the year come from the profits from a now cancelled (due to the virus) annual event.)
IANAL - but the lawyers I've dealt with (FWIW as part of a non-profit) say different. When the organization places it's imprimatur onto a piece of content by officially publishing it, they assume responsibility for the content. If it violates copyright or trademark, they're potentially liable.
Anyhow, this is getting off topic and I've said my piece.