ImpostorBaker turns black foliage, unreal engine 5.0.1

Did you try turning on virtual textures from your project settings? I had this problem too but turning that on and restarting the editor worked for me.