Hi @Forest21, I see you're from Ireland and it's good to have you join this group! We have quite a few from your part of the world so this problem you have is universal! You will get a lot of support here and meet a lot of people who have the same thing you are faced with now. Since you've had no prior history of bedwetting and are now facing this all of a sudden, please do see a doctor and find out what's going on.
You could have an underlying medical condition and there's a good possibility you'll find out quickly and get treated for it. But please don't be embarrassed about seeing a doctor. Doctors have all seen this before, time and time again, and it has been covered in their medical school curriculum as well as in their internships and residencies. I know it's easy to think you're the only one this is happening to, but the reality is it happens a lot more people than you'd think.
If needed you can also consult with a urologist and their sole practice is devoted to the urinary tract and bladder. So meeting with a 50-year-old guy faced with sudden bedwetting is "old hat" to these doctors!! Everyone here will say that nothing that confronts a doctor, a GP or a urologist, surprises them. And their nursing staffs are also used to handling this type of problem.
When you do go they'll do a urinalysis to see if a clue to your problem shows up in the sample you give. And the doctor will take it from that point on. I hope you pick up the phone and make that call! The person on the other end of the phone is here to help you!