This issue can be resolved by specifying multi_level_index = False in the arguments of yfinance.download().
multi_level_index = False
yfinance.download()