ImpostorBaker turns black foliage, unreal engine 5.0.1

Was having this bug as well, and found out that it got fixed if I disconnected the PDO in the impostor material. No clue about any complications that might happen down the line but it works for now.
PDO On -

PDO Off -