your attention from egotistic pursuits to things that matter more: for instance, loss of intellectual sharpness does not disqualify you from gaining self-knowledge; and the latter may be helped by the collapse of egotism. However, if you judge that the restrictions are purely negative, take steps to remove them or to find alternative supplies of satisfaction.
If neither of these options seems to avail and the only remaining option is to accept the inevitable, this may well be life’s way of reminding you of what is important in life.