So, if I understand it correctly, Middleware and Backend should have been single component since it's one bounded context and splitting it makes one of those feature envy? Is there some benefit keeping these separate or is the cost of change too high at this point?
If it's not about features, but more about API, have you tried Consumer-driven contract testing approach?