Software Update Fails with Extra Script Error

Sometimes I face this issue when trying to update the software and system on Discover.

It shows the following message

While trying to apply extra data: apply_extra script failed, exit status 256

What does this mean and what is causing this issue?

Thanks!