Exam credits won't lapse however the flight test required will depend on how long your instrument rating has lapsed.
If your CIR has lapsed for less than a year then you usually will only have to do those parts of the test appropriate for a RENEWAL of your instrument rating
If your CIR has lapsed for more than a year then you will have to do the test appropriate for the INITIAL ISSUE of an instrument rating.