Removed the sample data of Carlbro from the system and the issue was fixed.
On analyzing the logs, we found that the filter's were checking the existing fixed license assigned to users from User form and comparing them with licenses configured in the system.
As we had imported sample data for Carlbro company in remedy, there were some users in user form which had fixed licenses.
Hence the calculation of free licenses came in negative and job would give the error.