This is due to the limitation of the camera itself, which only allows one of the HDMI video output or the camera's screen display to be enabled at a time. To resolve this issue, you can try setting the shooting format to 1080.
However, photography/video cameras do not have this limitation and support HDMI video output and camera screen display simultaneously.