Exactly as I thought, they wanted her to team up with Leia.
Apparently this movie wasn't Plan A, Plan B, Plan C but Plan E at this point.
https://twitter.com/vulture/status/1211354722172620801"Ok, so in the next scene Lando helps Finn and Poe infiltrate the Star Destroyer and..."
"I'm sorry Mr. Abrams but I can't walk up and down stairs or ramps also I do believe it is time for my nap"
"Mr. Ford, next up Leia and Han share a hug and..."
"This is embarrassing to bring her back like that, you have your scene with me and Adam, I'm leaving"
"Alright honey, now you stand here in front of this green screen and talk to Leia about what you discovered on Exce... Excogol"
"But Mr. Terrio I find it hard to do this with no one to talk to don't we have a stand in... ?"
"Well dear just imagine that this... broomstick is Carrie Fisher"
"Hi JJ how is my Star Wars coming along"
"We shot all the scenes Bob but editing this thing is a nightmare, the Leia CG isn't working, Lando is less mobile than we thought and there's of course the problem of Hamill and Ford hating our guts so no reshoots"
"And what about the boy?"
"Adam Driver did good sir, we can certainly use those scenes"
"Good.... NOW KILL HIM our research tells us we don't want cisgender relationships on screen or the age old trope of a man saving a woman"
"Kylo Ren dies but Ben Solo lives Mr. Iger and they set off into the sunset together on Tatooine it is a very moving scene, possibly the best in the film"
"KILL HIM, THROW HIM DOWN THE SHAFT IF YOU HAVE TO!, DO IT!"
"He survives that sir..."
"THEN REVERSE THE SCENE!!!!"