The best thing you can do is get a code reader, even a basic one and see which kind of error codes it’s throwing out.
You can then search on here and get an idea on the problem and cost.
The roof is a complex beast, and you want to take it to a garage armed with some knowledge, or the quotes could get silly.
Some roof repairs are really very inexpensive. Others not so much.