Just see this commnet. It fixes this for me: https://github.com/kevinhwang91/nvim-ufo/issues/92#issuecomment-2241150524