Fixes #6633: PGError while creating OS with 255 characters in name

Fixes #6657: Major/monor version fields should not accept negative integer values while creating OS