The transmission can not make the engine hold or raise RPM. That requires power, which a transmission can not create.
As stated, throttle cable issue or something engine related.
Bad TPS or collapsed PCV tube would be the common ones.
Don't "think outside the box".
There is no box.
Do it correct, or do it twice.