Don't worry nothing fried. But in order for the 9th gen CPU to work, you would have to update the BIOS 1st. So that means u need an 8th gen CPU from someone 1st.
Or yeah just send back the z370 and get z390. I think most z370 mobo made after July/August support 9th gen out of the box tho.