Electromagnetic-thermal-structure multi-layer nonlinear elastoplastic modelling study on epoxy-impregnated REBCO pancake coils in high-field magnets