My name isXXXXX a licensed attorney. Glad to try and help out.
Sure sorry for your circumstances, truly. My heart goes out to you.
Accordingly, I'm pleased to share some good news, as follows. The scenario you've described doesn't serve to invalidate the search warrant, per se. In other words, say law enforcement searched and came up with nothing. Likewise, that wouldn't mean the underlying warrant was invalid, assuming it met with the legal requirements.
However, you have a golden opportunity of sorts here, and one which is exceptionally rare. A criminal defense can approach the prosecution on your behalf, without risking making any admissions, where you would be unable to do so. What I'm saying here is that your only next step should be two-fold. First, whatever you do, remain silent and make no statements whatsoever to law enforcement. Secondly, confer with a local lawyer today.
Seriously, that's the only next two steps you should take. It's not optional, you do have rights here, but you must act to exercise them.
If you have a follow-up question or need clarification, please just say the word by using "reply" to reach me.
I truly hope all works out for you.