After more tests I found out that only Pickable and ShootingWeaponBase have to be refreshed to prevent crashes when compiling PlayerPawn.
Also there is weird thing (probably unrelated to this problem), that after compiling PlayerPawn I got 2 warnings that Pickable cannot be casted to two classes because they do not inherit from pickable, but actually they do. If I refresh cast nodes, problem disappear.