Good thought, Valentine. I'd also check whether there are any minimum capacity or minimum capacity addition constraints in the optimized scenario that might be forcing the model to add more capacity than needed.
By the way, if you're working with optimization, we strongly recommend using NEMO, which you can download on the LEAP website (https://leap.sei.org/download/). It's faster and more powerful than OSeMOSYS - e.g., with NEMO you can model energy storage, use a wider range of solvers (including the Cbc open-source solver, which is faster than GLPK), and calculate selected years only. To select NEMO for a scenario, choose it in the optimized transformation module's Optimize variable.