Facing error when trying to add libmodbus feature in .bbappend file

I am using Digi ConnectCore 8M Nano Development kit. It has yocto 4.0(Kirkstone). I am trying to add libmodbus in the rootfs.

For that I added the line : IMAGE_INSTALL:append = " libmodbus" in the core-image-base.bbappenf file.

Now when I run “bitbake dey-image-qt”. I am getting following error :
DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function set_image_size
| DEBUG: 648814.400000 = 499088 * 1.300000
| DEBUG: 648814.400000 = max(648814.400000, 8192)[648814.400000] + 0
| DEBUG: 648815.000000 = int(648814.400000)
| DEBUG: 651264 = aligned(648815)
| DEBUG: returning 651264
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_boot_vfat
| WARNING: exit code 1 from a shell command.
ERROR: Task (/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/dey-4.0/sources/meta-digi/meta-digi-dey/recipes-core/images/dey-image-qt.bb:do_image_boot_vfat) failed with exit code ‘1’

I am not able to understand what is causing this error.

is there a log file after the build fails? does it have more info? Perhaps the image size exceeds the maximum?

I had made multiple changes in the different files when I was trying to add libmodbus to the rootfs.

I assume that one of the changes I may not have reverted back to the original, hence this problem arose.

I created an image from scratch after resyncing the repository and now the problem has been resolved.