I managed to resolve the issue after some exploration in ERPNext. I realized that I needed to add the default cost center in the POS Profile, which I had missed earlier. Now that I’ve added the default cost center, everything is working fine. Refer to the attached image for details.
