A possible workaround is to create a raster with no data and refer to it every time you do not have data for that particular measurement/band/layer.
This works if the input dataset has always the same extent and projection.
OpenDataCube can index and process LandSat Level 2 Collection 2 data via a STAC v0.7 to v1.0b upgrade and indexing from STAC. There is work in progress in Digital Earth Africa to implement this in an end-to-end fashion. You can follow along here : https://explorer.dev.digitalearth.africa/products/ls8_c2l2/extents
It shows bits of LANDSAT Collection2 Level2 ...