You can bring up this argument that it was accidentally, you have good chances to go with this, since as long as it isn't evident that you were explicitly searching for CP, they will have to proof that you wanted it. This should work in most countries because the police needs to proof that you're guilty and not you that you aren't but it depends on how believable it is that it was accidentally.