Use quadrupen instead of glmnet.
Check that selected variables define a full rank matrix.
Change working dirrectory.