A study by the Australian National University has found that the decaying of deadwood from forests could contribute up to 10 billion tons of CO2 emissions annually - https://www.nature.com/articles/s41586-021-03740-8
That's a real lot of emissions, about 30% of total CO2 emissions, which is about 35 billion tons per year. (By the way, it is not clear if the total includes deadwood CO2 emissions, though it includes CO2 emissions from agricultural activities such as tilling and agri land use changes.).
While it might be tempting to think of using the deadwood for our energy purposes, the story is far more intricate. The deadwood provides a range of benefits to the forest ecosystem. A research from the UK forest dept says that about a fifth of all forest species depend on deadwood for their survival. Deadwood decomposition through composting also provides the soil with a nutrient rich compost. A forest's biodiversity might depend a lot on the deadwood!
So deadwood emissions are a price we have to pay for maintaing the forest's vitality. But 10 billion tons of CO2 is a heck a lot of emissions!
https://scitechdaily.com/deadwood-releasing-10-9-gigatons-of-carbon-every-year-more-than-all-fossil-fuel-emissions-combined/