RFSoC 4x2 board turning off while BaseOverlay function is executed

Are you using a Mac to connect to the board? If yes, did you see that previous post( Connecting RFSoC to a MacOS computer)?

If no, Could you try to connect the board to a router via a wired ethernet connection, to see if the router gives an IP address to your board?