I am also not a lawyer, but I believe part of the problem is that AI is still new enough that copyright law hasn't caught up yet, so there are lots of unknowns. Perhaps it's fine, or perhaps you'll be infringing copyright. You might need to wait until the situation becomes clearer.
I've also seen cases where AI image generators are able to create obviously copyrighted or trademarked images. It's obvious enough to see if it generated Mario, which is a Nintendo copyright, but how do you know if it generated something else obviously copyrighted that you're not already familiar with? It's a difficult question and it's not clear to me how AI image generators can completely solve that problem.
But yeah, I don't think anyone you'll talk to on this forum is able to offer proper legal advice, so this is probably all just speculation.