I implemented a similar functionality some months before. Each component of my item group had a percentage and when I add the price on a custom line field, the components inherit it based on their percentage.
The error NetSuite is giving you, is because your logic is updating pricing fields on end line.