The link below is a good example of how I think dark matter and dark energy are related.
https://phys.org/news/2020-11-sticky-electrons-repulsion.html
Dark matter can be created in a star due to the high temperature and extreme gravity.
When dark matter leaves the gravity well it does a phase...