I’m not a lawyer. I believe this falls under the doctrine of “Plain View”. As long as you are in a place that you are legally allowed to be in, you can seize what is in plain view.
Unless the stuff in Plain View is only seen because you were in the house with a bad warrant. Then that evidence get tossed too.
And most judges won't allow a do-over.