UE5-0 Unreal Engine 5 Crashes when we take high resolution screenshot. Is it a bug?

Has anyone found a solution for this?
I’m trying to take screenshots with alpha so I need the “Take High Res Screenshoot” node, but so far it only works on editor. If i try to take a screenshoot on a packaged build the game crashes as soon as the node is called.