StarCraft Stuck After Episode 1 (‘Client is not connected’ Issue)

I’m encountering a problem when running StarCraft.

Episode 1 finishes correctly, but Episode 2 does not start and appears to be stuck or timing out.
The log only shows messages like ‘Client is not connected’.
Could you help me understand why the game is stopping after the first episode?”

A detailed version is
OS: Windows 11
Starcraft2: 5.0.15.95299
agent: RandomStarCraftAgent