As per the information you have shared it seems that the switch starts running the wrong code which we call ‘routing code’ this is a known issue.
If access via IP address is not possible here is a guide on how to access to the Switch via console (cable access between your PC to the ICX 7150-C12P) in this case we need a USB type C to USB standard or Console cable Rj45 to USB.
ICX7150-24P Router>enable (hit enter to accept the command) ICX7150-24P Router#copy flash flash secondary (hit enter to accept the command and wait: until the flash finished) ICX7150-24P Router#boot system flash secondary yes (hit enter to accept the command: the switch will reboot)
There are Two ways to fix this issue:
I) How to Fix Routing code issues on Lennar Home users via CLI