Boundary layer solutions to problems with infinite-dimensional singular and regular perturbations