This try block is extremely big, let's please refactor this. _Originally posted by @Adamantios in https://github.com/valory-xyz/trader/pull/646#discussion_r2504791422_