I fixed this error by adding the steam.exe file to the game's target folder. However, after logging in to Steam, it turns out that I do not have a license to play the game. It costs PLN 70. And that's why the game won't work because it is in the Steam version.