I think these last 2 mentioned errors were caused by incorrectly adding the evolution / item flags to PBSEConfig file.
For evolutions, open PBSEConfig.txt find [EvolutionMethods] and add in the next line your evolution method following the templates below.
For example, if I make a custom evo where you evolve after getting critted 10 times or something I'd add: in a new line after EvolutionMethods
NewEvolutionName = Integer
Because in these case you would have to be critted 10 times.
In drdoom76's case it's a bit trickier to figure out what's going on but I suspect it's upon hitting the compile button, if the error is something out of bounds, there might be a chance that the PBSEConfig was incorrectly adjusted, it's very important to not add commas, just put new stuff in new lines in the proper section.