However, once the patent right is invalid, it is "regarded as nonexistent from the beginning". To put it bluntly, you should never put forward such a patent, and everything related to this patent should be restored to its original state. The whole right is gone, and it doesn't matter what date.
For example, if you implement the required technology after the patent application date, and then the patent is invalid, then you are not infringing. Of course, those implemented before the filing date are even less infringing.
I guess your focus is whether there is infringement, not its effective date.