Trainers can only collect 9,999 Mega Energy per Pokémon species. If you reach this limit, you will not receive Mega Energy after defeating a Mega Raid Boss. We plan to convert this extra Mega Energy into another reward in the future.