If they're spending 40 on him, without any negotiations, they have money to spend. Whether that's likely due to budget, doing better on the kit deal than they thought, investment (the new money from partial ownership), FFP being suspended, restructuring using loans, or selling players on there's something working out to where they could make the move.
Note, I don't think it's set in stone that they're getting him or paying the buyout. But if they're just saying, here's the cash, we want the player, without any haggling, they have the money to do more this summer. 40 was more than their net spend the last window or two, so, if that's already penciled in (plus more Jota money, plus potentially Kabak) that's a big outlay for a team that has been pleading poor for a bit now.
As for it being a bit of a gamble, maybe, maybe not. I think the argument they would make involves the idea of paying 40 for a guy who can be a very good player for a decade, being pennies on the dollar. Sure, he might not be amazing, but even if he's just a serviceable squad player who plays 15-20 matches a season, that's a ton of return on investment. With regards to injury concerns, yeah, it is a bit concerning, but I think the idea is get 3-4 young players, and someone should be able to play.
I think it's more likely they sell someone on. But we shall see.