The solution to these five kinds of wrong consciousness is to worship the wisdom Buddha that represents the opposite of the wrong attitude that we wish to counteract.
Each of the five Buddhas represents a different aspect of wisdom.
For example, if we wish to overcome excessive desire, then we should ritually invoke (and identify with) Amitabha, because this Buddha embodies the wisdom of observation.
Thus in observation we recognize the true nature of sentient beings as empty and suffering, thereby inculcating compassion rather than desire.