Hi, welcome to BYC!
Sounds like you might have too many candy bars available.
Scraps, corn, and meal worms are like crack cocaine to a chicken! Why would they eat their salad, so to speak? I would cut them out until your birds are consuming their formulated ration that is meant to meet their nutritional needs. They know you are bringing goodies they will hold out.
My birds do NOT like pellets at all. They prefer crumbles. Raising your feeder so it as the same height as their back can help to reduce waste. Also, don't fill it to the top. It's amazing how good they can get at beaking everything out onto the ground!
Changing feeds might be an option for you. If this feed is new to your birds, they can be resistant to change since they are creatures of habit. You can also try wetting it which would turn it into a mash. Not runny though. This decreases some waste and some birds really like it.
Scraps, corn, and meal worms or other treats should be limited to NO more than 10% of their total daily intake. Corn is low in protein and meal worms are high in fat. While scraps are likely going to be low in nutrients and micro nutrients. Be SURE not to diminish your protein below 16%.
Since I feed crumble... and usually ferment, I can toss out a handful of pellets and the birds think they are getting a treat when in fact they are getting full nutrition.