I had scenes rendered too dark with Lumen, Nanite, and Ray Tracing enabled. The solution was to disable ‘Use Hardware Ray Tracing when available’ setting.
Notice: I use an AMD GPU, which may or may not yield different results.
Setting which fixed shadows with Lumen being too dark
Example with Use Hardware Ray Tracing when available enabled
Example without Use Hardware Ray Tracing when available